package com.spzx.product.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "商品")
public class Brand extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Schema(description = "商品名")
    @NotBlank(message = "商品名称不能为空")
    @Size(min=0,max=64,message = "商品名称长度不能超过64个字符")
    private String name;

    @Schema(description = "商品图标")
    @NotBlank(message = "商品图标不能为空")
    @Size(min = 0, max = 200, message = "商品图标长度不能超过200个字符")
    private String logo;
}
